var express = require('express');
var router = express.Router();
var dataCtrl=require("../controllers/connect.controller")

router.post('/data',dataCtrl.create);
router.post('/data/:id',dataCtrl.update);
router.delete('/data/:id',dataCtrl.remove);
router.post("/list",dataCtrl.list)
router.all("/all",dataCtrl.all)

module.exports = router;